#include "fucmgrwid_rowchain.h"
#include "ui_fucmgrwid_rowchain.h"

#include "ViewStyle.h"

#include <QDebug>

FucMgrWid_RowChain::FucMgrWid_RowChain(QWidget *parent) :
    FunctionMgrWid::FunctionMgrWid(parent),
    ui(new Ui::FucMgrWid_RowChain)
{
    ui->setupUi(this);
    this->style_set();
}

FucMgrWid_RowChain::~FucMgrWid_RowChain()
{
    delete ui;
}

void FucMgrWid_RowChain::style_set()
{
    // 借助一些基础样式配置


//    // more按钮设定
//    this->ui->btn_more->setStyleSheet(view::BACKGROUND_GRAY + view::BORDER(1));

    // 时间窗口样式设定
    this->ui->lb_time->setStyleSheet(view::BORDER(1));


    //    // 子控件样式设置----------------------------------------------------------

    //    // 字体测量工具
    //    QFontMetrics fontMetrics(this->ui->lb_time->font());

    //    // 计算整个字符串的宽度和高度
    //    int width = fontMetrics.width(ui->lb_time->text());
    //    int height = fontMetrics.height();
    //    qDebug() << "font wid and hei" << width << height;


    ////    // 时间标签的设置
    ////    this->ui->lb_time->setFixedSize(QSize(184,50));
    ////    // 时间标签的设置
    ////    this->ui->btn_more->setFixedSize(QSize(68,50));
    ////    this->ui->wid_wh->setFixedHeight(50);

    //    qDebug() << Widget_Enhanced::pds_width;

    //    // MORE窗口的设置
    //    qDebug() << this->size();
}
